# -*- coding: utf-8 -*-
# @Time : 2023/10/15 9:40 AM 
# @Author : Wayne
# @Email : 1
# @File : index_to_dic.py
# @Project : python_demo
# @DESCRIPTION :

# 双层列表转换位具有指定键的字典对象：，keys =  ["FName", "FNumber"] 是这种形式
# 标签：金蝶
"""
有的数据返回是数组，金蝶的
0:123
1:安全
2:名字
"""
# def convert_to_objects(data, keys):
#     obj_list = []
#     for item in data:
#         obj = dict(zip(keys, item))
#         obj_list.append(obj)
#     return obj_list
#
#
# # 调用函数
# keys = ["FBillNo","FDocumentStatus","FCarryBillNo","FStockId"]
# data = ["1","c","k","g"]
#
# obj_list = convert_to_objects(data, keys)
# print(obj_list)
